package com.muyu.cart.domain.req;


import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.*;

/**
 * 购物车列表查询请求
 *
 * @author JiaCheng
 * @version 1.0
 * @since 2025-09-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CartListReq  {

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 是否只显示已勾选商品（0=全部，1=已勾选）
     */
     @Min(value = 0, message = "勾选状态筛选参数无效")
     @Max(value = 1, message = "勾选状态筛选参数无效")
    private Integer onlySelected;
}